<?php
namespace Models;
class Category extends Model{
    public function getAllCategory () {
        $sql = 'select id, title from categories';
        $stmt = $this->pdo->query($sql);
        return $stmt->fetchAll(\PDO::FETCH_ASSOC);
    }
}